/*
 * ReadWriteLock.hpp
 *
 *  Created on: 13.12.2012
 *      Author: zheka
 */

#ifndef READWRITELOCK_HPP_
#define READWRITELOCK_HPP_

#include <pthread.h>
class ReadWriteLock {
private:
	pthread_rwlock_t rwlock;
	pthread_mutex_t mutex;
public:
	ReadWriteLock();
	~ReadWriteLock();
	void readLock();
	void writeLock();
	void unlock();
};

#endif /* READWRITELOCK_HPP_ */
